#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QProcess>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);

    ~MainWindow();
public slots:
    void onSearchButton();
    void showResult(int exitCode, QProcess::ExitStatus exitStatus);
    void onReadResult();
    void onReadError();
private:
    Ui::MainWindow *ui;
    QProcess *process;
};

#endif // MAINWINDOW_H
